package com.sword.erp.order.feignclient;

import com.sword.erp.order.feignclient.fallback.StockServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 库存服务
 * @author sword
 * @date 2021/10/10 15:57
 */
@FeignClient(name = "stock", fallback = StockServiceFallBack.class)
public interface StockService {
    /**
     * 减少库存
     * @return java.lang.String
     * @author sword
     * @date 2021/10/10 14:17
     */
    @GetMapping("/reduce")
    String reduceStock();
}
